package org.edu.modules.kaoqin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.edu.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("ve_hr_performance")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "绩效考勤表", description = "绩效考勤表")
public class VeHrPerformance implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 自增id
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "自增id")
    private String id;
    /**
     * 考勤日期
     */
    @Excel(name = "考勤日期", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "考勤日期")
    private Date kqrq;
    /**
     * 考勤用户id
     */
    @Dict(dicCode = "userId", dictTable = "ve_base_teacher", dicText = "XM")
    @Excel(name = "考勤用户id", width = 15)
    @ApiModelProperty(value = "考勤用户id")
    private String userid;
    /**
     * 是否值班  1=是  0=否
     */
    @Excel(name = "是否值班  1=是  0=否", width = 15)
    @ApiModelProperty(value = "是否值班  1=是  0=否")
    private Integer zb;
    /**
     * 上午是否在职  1=是  0=否
     */
    @Excel(name = "上午是否在职  1=是  0=否", width = 15)
    @ApiModelProperty(value = "上午是否在职  1=是  0=否")
    private Integer sw;
    /**
     * 下午是否在职  1=是  0=否
     */

    @Excel(name = "下午是否在职  1=是  0=否", width = 15)
    @ApiModelProperty(value = "下午是否在职  1=是  0=否")
    private Integer xw;
    /**
     * 晚上是否在职  1=是  0=否
     */


    @Excel(name = "晚上是否在职  1=是  0=否", width = 15)
    @ApiModelProperty(value = "晚上是否在职  1=是  0=否")
    private Integer ws;
    /**
     * 终端id
     */
//    @Excel(name = "终端id", width = 15)
    @ApiModelProperty(value = "终端id")
    private Integer terminalid;
    /**
     * createTime
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "createTime")
    private Date createTime;

    @TableField(exist = false)
    private String weekName;

}
